package com.cnhis.cloudhealth.clidoctorweb.commentquery;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.jboss.resteasy.logging.Logger;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cnhis.cloudhealth.clinical.clidoctor.commentquery.service.ICommentQuery;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import java.util.HashMap;

@Path("commentquery")
@Component
public class CommentQueryRest {
	Logger log = Logger.getLogger(CommentQueryRest.class); 
	@Reference
	private ICommentQuery commentQuery;
	/* ScriptId(2018) */
   	/* Description(参数设置中，提取对应的收费项目) */
	/**
	 * 
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@POST
	@Path("doctorprescriptioncommentquery")
	@Produces({ MediaType.APPLICATION_JSON })
	public ModelVo doctorPrescriptionCommentQuery(@FormParam("bce01") int bce01,
			@FormParam("currPage") int currPage,
			@FormParam("pageSize") int pageSize
			)throws Exception{
		HashMap map = new HashMap();
		map.put("bce01", bce01);
		return commentQuery.doctorPrescriptionCommentQuery(map, (currPage-1)*pageSize, pageSize);
	}
}
